home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / 2004-12 CHIP.iso / Internet / NVU 0.50 for Windows / nvu-0.50-win32-installer-full.exe / {app} / chrome / comm.jar / content / communicator / utilityOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2004-03-04  |  10.0 KB  |  298 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xul-overlay href="chrome://communicator/content/platformCommunicatorOverlay.xul"?>
  4.  
  5. <!DOCTYPE overlay [
  6.  
  7. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  8. %brandDTD;
  9. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  10. %globalRegionDTD;
  11. <!ENTITY % utilityDTD SYSTEM "chrome://communicator/locale/utilityOverlay.dtd">
  12. %utilityDTD;
  13.  
  14. ]>
  15.  
  16. <overlay id="utilityOverlay"
  17.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  18.  
  19.   <script type="application/x-javascript"
  20.           src="chrome://global/content/strres.js"/>
  21.   <script type="application/x-javascript"
  22.           src="chrome://communicator/content/utilityOverlay.js"/>
  23.   <script type="application/x-javascript"
  24.           src="chrome://communicator/content/builtinURLs.js"/>
  25.  
  26.   <!-- online/offline status indicators -->   
  27.   <broadcaster id="Communicator:WorkMode"
  28.                label="&offlineGoOfflineCmd.label;"
  29.                type="checkbox"
  30.                oncommand="toggleOfflineStatus();"/>
  31.  
  32.   <popup id="networkProperties" onpopupshown="InitProxyMenu();">
  33.     <menuitem id="network-proxy-no"
  34.               type="radio"
  35.               name="status"
  36.               label="&direct.label;"
  37.               accesskey="&direct.accesskey;"
  38.               oncommand="setNetworkStatus('0')"/>
  39.     <menuitem id="network-proxy-manual"
  40.               type="radio"
  41.               name="status"
  42.               label="&manual.label;"
  43.               accesskey="&manual.accesskey;"
  44.               oncommand="setNetworkStatus('1')"/>
  45.     <menuitem id="network-proxy-pac"
  46.               type="radio"
  47.               name="status"
  48.               label="&pac.label;"
  49.               accesskey="&pac.accesskey;"
  50.               oncommand="setNetworkStatus('2')"/>
  51.     <menuseparator/>
  52.     <menuitem label="&proxy.label;"
  53.               accesskey="&proxy.accesskey;"
  54.               oncommand="goPreferences('advancedItem',
  55.                                        'chrome://communicator/content/pref/pref-proxies.xul',
  56.                                        'proxiesItem');"/>
  57.   </popup>
  58.  
  59.   <statusbarpanel id="offline-status" context="networkProperties"
  60.                   observes="Communicator:WorkMode"/>
  61.  
  62.   <menuitem id="offlineGoOfflineCmd"
  63.             label="&offlineGoOfflineCmd.label;"
  64.             accesskey="&offlineGoOfflineCmd.accesskey;"
  65.             observes="Communicator:WorkMode"/>
  66.  
  67.   <!-- File Menu -->
  68.   <menu id="menu_File"
  69.         label="&fileMenu.label;"
  70.         accesskey="&fileMenu.accesskey;"/>
  71.  
  72.   <!-- New SubMenu (Under File Menu) -->
  73.   <command id="cmd_newNavigator"
  74.            oncommand="OpenBrowserWindow()"/>
  75.   <command id="cmd_newEditor"
  76.            oncommand="NewEditorWindow();"/>
  77.  
  78.   <!-- XXX not implemented, temporarily disabled
  79.   <command id="cmd_newEditorTemplate"
  80.            disabled="true"
  81.            oncommand="NewEditorFromTemplate();"/>
  82.   <command id="cmd_newEditorDraft"
  83.            disabled="true"
  84.            oncommand="NewEditorFromDraft();"/>
  85.   -->
  86.  
  87.   <menuitem id="menu_newEditor"
  88.             label="&newBlankPageCmd.label;"
  89.             accesskey="&newBlankPageCmd.accesskey;"
  90.             key="key_newBlankPage"
  91.             command="cmd_newEditor"/>
  92.   <menuitem id="menu_newEditorTemplate"
  93.             label="&newPageFromTemplateCmd.label;"
  94.             accesskey="&newPageFromTemplateCmd.accesskey;"
  95.             command="cmd_newEditorTemplate"/>
  96.   <menuitem id="menu_newEditorDraft"
  97.             label="&newPageFromDraftCmd.label;"
  98.             accesskey="&newPageFromDraftCmd.accesskey;"
  99.             command="cmd_newEditorDraft"/>
  100.  
  101.   <menu id="menu_New"
  102.         label="&newMenu.label;"
  103.         accesskey="&newMenu.accesskey;"/>
  104.  
  105.   <menuitem id="menu_newNavigator"
  106.             label="&newNavigatorCmd.label;"
  107.             accesskey="&newNavigatorCmd.accesskey;"
  108.             key="key_newNavigator"
  109.             command="cmd_newNavigator"/>
  110.  
  111.   <key id="key_newBlankPage"
  112.        key="&newBlankPageCmd.key;"
  113.        command="cmd_newEditor"
  114.        modifiers="accel, shift"/>
  115.   <key id="key_newNavigator"
  116.        key="&newNavigatorCmd.key;"
  117.        command="cmd_newNavigator"
  118.        modifiers="accel"/>
  119.  
  120.   <!-- Edit Menu -->
  121.   <menu id="menu_Edit"
  122.         label="&editMenu.label;"
  123.         accesskey="&editMenu.accesskey;"/>
  124.   <menuitem id="menu_undo"
  125.             label="&undoCmd.label;"
  126.             key="key_undo"
  127.             accesskey="&undoCmd.accesskey;"
  128.             command="cmd_undo"/>
  129.   <menuitem id="menu_redo"
  130.             label="&redoCmd.label;"
  131.             key="key_redo"
  132.             accesskey="&redoCmd.accesskey;"
  133.             command="cmd_redo"/>
  134.   <menuitem id="menu_cut"
  135.             label="&cutCmd.label;"
  136.             key="key_cut"
  137.             accesskey="&cutCmd.accesskey;"
  138.             command="cmd_cut"/>
  139.   <menuitem id="menu_copy"
  140.             label="©Cmd.label;"
  141.             key="key_copy"
  142.             accesskey="©Cmd.accesskey;"
  143.             command="cmd_copy"/>
  144.   <menuitem id="menu_paste"
  145.             label="&pasteCmd.label;"
  146.             key="key_paste"
  147.             accesskey="&pasteCmd.accesskey;"
  148.             command="cmd_paste"/>
  149.   <menuitem id="menu_delete"
  150.             label="&deleteCmd.label;"
  151.             key="key_delete"
  152.             accesskey="&deleteCmd.accesskey;"
  153.             command="cmd_delete"/>
  154.   <menuitem id="menu_selectAll"
  155.             label="&selectAllCmd.label;"
  156.             key="key_selectAll"
  157.             accesskey="&selectAllCmd.accesskey;"
  158.             command="cmd_selectAll"/>
  159.   <menuitem id="menu_findTypeText"
  160.             label="&findTypeTextCmd.label;"
  161.             key="key_findTypeText"
  162.             accesskey="&findTypeTextCmd.accesskey;"
  163.             command="cmd_findTypeText"/>
  164.   <menuitem id="menu_findTypeLinks"
  165.             label="&findTypeLinksCmd.label;"
  166.             key="key_findTypeLinks"
  167.             accesskey="&findTypeLinksCmd.accesskey;"
  168.             command="cmd_findTypeLinks"/>
  169.  
  170.   <!-- These key nodes are here only for show. The real bindings come from
  171.        XBL, in platformHTMLBindings.xml. See bugs 57078 and 71779. -->
  172.  
  173.   <key id="key_undo"
  174.        key="&undoCmd.key;"
  175.        modifiers="accel"/>
  176.   <key id="key_redo"
  177.        key="&redoCmd.key;"
  178.        modifiers="accel"/>
  179.   <key id="key_cut"
  180.        key="&cutCmd.key;"
  181.        modifiers="accel"/>
  182.   <key id="key_copy"
  183.        key="©Cmd.key;"
  184.        modifiers="accel"/>
  185.   <key id="key_paste"
  186.        key="&pasteCmd.key;"
  187.        modifiers="accel"/>
  188.  
  189.   <commandset id="globalEditMenuItems"
  190.               commandupdater="true"
  191.               events="focus"
  192.               oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  193.   <commandset id="selectEditMenuItems"
  194.               commandupdater="true"
  195.               events="select"
  196.               oncommandupdate="goUpdateSelectEditMenuItems()"/>
  197.   <commandset id="undoEditMenuItems"
  198.               commandupdater="true"
  199.               events="undo"
  200.               oncommandupdate="goUpdateUndoEditMenuItems()"/>
  201.   <commandset id="clipboardEditMenuItems"
  202.               commandupdater="true"
  203.               events="clipboard"
  204.               oncommandupdate="goUpdatePasteMenuItems()"/>
  205.   <commandset id="findTypeMenuItems"
  206.               commandupdater="true"
  207.               events="focus"
  208.               oncommandupdate="goUpdateFindTypeMenuItems()"/>
  209.  
  210.   <command id="cmd_copyLink"
  211.            oncommand="goDoCommand('cmd_copyLink')"
  212.            disabled="false"/>
  213.   <command id="cmd_copyImageLocation"
  214.            oncommand="goDoCommand('cmd_copyImageLocation')"
  215.            disabled="false"/>
  216.   <command id="cmd_copyImageContents"
  217.            oncommand="goDoCommand('cmd_copyImageContents')"
  218.            disabled="false"/>
  219.   <command id="cmd_undo" 
  220.            oncommand="goDoCommand('cmd_undo')"
  221.            disabled="true"/>
  222.   <command id="cmd_redo" 
  223.            oncommand="goDoCommand('cmd_redo')"
  224.            disabled="true"/>
  225.   <command id="cmd_cut" 
  226.            oncommand="goDoCommand('cmd_cut')"
  227.            disabled="true"/>
  228.   <command id="cmd_copy" 
  229.            oncommand="goDoCommand('cmd_copy')"
  230.            disabled="true"/>
  231.   <command id="cmd_paste" 
  232.            oncommand="goDoCommand('cmd_paste')"
  233.            disabled="true"/>
  234.   <command id="cmd_delete"
  235.            oncommand="goDoCommand('cmd_delete')"
  236.            valueDefault="&deleteCmd.label;"
  237.            valueDefaultAccessKey="&deleteCmd.accesskey;"
  238.            disabled="true"/>
  239.   <command id="cmd_selectAll"
  240.            oncommand="goDoCommand('cmd_selectAll')"
  241.            disabled="true"/>
  242.   <command id="cmd_findTypeText" 
  243.            oncommand="goDoCommand('cmd_findTypeText')"/>
  244.   <command id="cmd_findTypeLinks" 
  245.            oncommand="goDoCommand('cmd_findTypeLinks')"/>
  246.         
  247.   <!-- Not needed yet, window will need this: -->
  248.   <!-- broadcaster id="cmd_preferences"/ -->
  249.  
  250.   <menuitem id="menu_preferences"
  251.             label="&preferencesCmd.label;"
  252.             key="key_preferences"
  253.             accesskey="&preferencesCmd.accesskey;"/>
  254.  
  255.   <!-- View Menu -->
  256.   <menu id="menu_View"
  257.         label="&viewMenu.label;"
  258.         accesskey="&viewMenu.accesskey;"/>
  259.   <menu id="menu_Toolbars"
  260.         label="&viewToolbarsMenu.label;"
  261.         accesskey="&viewToolbarsMenu.accesskey;"/>
  262.  
  263.   <menuitem id="menu_showTaskbar"
  264.             label="&showTaskbarCmd.label;"
  265.             accesskey="&showTaskbarCmd.accesskey;"
  266.             oncommand="goToggleToolbar('status-bar', 'menu_showTaskbar')"
  267.             checked="true"/>
  268.  
  269.   <!-- Help Menu -->
  270.   <menu id="menu_Help"
  271.         label="&helpMenu.label;"
  272.         accesskey="&helpMenu.accesskey;">
  273.     <menupopup id="helpPopup">
  274.       <menuitem accesskey="&releaseCmd.accesskey;"
  275.                 label="&releaseCmd.label;"
  276.                 id="releaseUrl"
  277.                 oncommand="openTopWin('&releaseURL;');"/>
  278.  
  279.       <menuseparator id="menu_HelpAboutSeparator"/>
  280.  
  281.       <menuitem class="about"
  282.                 accesskey="&aboutCommPluginsCmd.accesskey;"
  283.                 label="&aboutCommPluginsCmd.label;"
  284.                 id="pluginInfo"
  285.                 oncommand="openTopWin('about:plugins')"/>
  286.       <menuitem accesskey="&aboutCmd.accesskey;"
  287.                 label="&aboutCmd.label;"
  288.                 id="aboutName"
  289.                 oncommand="goAboutDialog();"/>
  290.     </menupopup>
  291.   </menu>
  292.         
  293.  <!-- Toolbar boxes -->
  294.  <hbox id="toolbar_button_box"
  295.        flex="100%"/>
  296.  
  297. </overlay>
  298.